﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch03_1
{
    class Class3
    {
        static void Main(string[] args)
        {
            double max;

            Console.Write("请输入第一个数：");
            double a = double.Parse(Console.ReadLine());
            Console.Write("请输入第二个数：");
            double b = double.Parse(Console.ReadLine());
            Console.Write("请输入第三个数：");
            double c = double.Parse(Console.ReadLine());
            
            max = (max = a > b ? a : b) > c ? max : c;

            Console.WriteLine("最大的数是{0}",max);
        }
    }
}
